using System;

namespace Widgetsphere.Generator.Common.GeneratorFramework
{
  public interface IModelObjectController : IDisposable
  {
    ModelObjectTreeNode Node { get;}
    IModelObject Object { get;}
    ModelObjectUserInterface UIControl { get;}

    MenuCommand[] GetMenuCommands();
    event ItemChanagedEventHandler ItemChanged;
    MessageCollection Verify();
    bool DeleteObject();
    void Refresh();
		bool IsEnabled { get; }

		void OnItemChanged(object sender, System.EventArgs e);		
  }
}
  